<html>
<head>
<title>DOM Level 2 Events Example</title>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
	$(function(){
		$('#obama')
		.bind('click',function(event) {
		say('Whee once!');
		})
		.bind('click',function(event) {
		say('Whee twice!');
		})
		.bind('click',function(event) {
		say('Whee three times!');
		});
	});
	function say(text) {
		$('#console').append('<div>'+text+'</div>');
	}
</script>
</head>
<body>
<img id="obama"
	src="http://upload.wikimedia.org/wikipedia/commons/thumb/e/e9/Official_portrait_of_Barack_Obama.jpg/220px-Official_portrait_of_Barack_Obama.jpg" />
<div id="console"></div>
</body>
</html>
